package com.liangtian.mdm.system.organization.model;

import com.liangtian.mdm.base.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.util.Date;

/**
 * <p>Encoding    :  UTF-8</p>
 * <p>Package Name: com.liangtian.mdm.system.dictionary.model </p>
 * <p>Project Name: dm </p>
 * <p>Copyright   :  Copyright(c) 2016 石化盈科信息技术有限责任公司 </p>
 * <p>Created Time: 2016-04-22 17:31</p>
 * <p>Description : 机构实体</p>
 *
 * @author : wangyq
 * @version :  1.0
 */
@Table(name = "SYS_ORGANIZATION")
public class SysOrganization extends BaseModel {
    @SequenceGenerator(name = "Any", sequenceName = "SYS_ORGANIZATION_SEQ")
    @Id
    @Column(name = "ORGANIZATION_ID")
    private Long organizationId;

    @Column(name = "ORGANIZATION_NAME")
    private String organizationName;

    @Column(name = "ORGANIZATION_SHORT_NAME")
    private String organizationShortName;

    @Column(name = "PARENT_ORGANIZATION_ID")
    private Long parentOrganizationId;

    @Column(name = "CREATE_USER_ID")
    private Long createUserId;

    @Column(name = "CREATE_DATE")
    private Date createDate;

    @Column(name = "ORGANIZATION_STATUS")
    private Long organizationStatus;

    @Column(name = "ORGANIZATION_ADD_TYPE")
    private Long organizationAddType;

    @Column(name = "ORGANIZATION_REMARK")
    private String organizationRemark;

    /**
     * @return ORGANIZATION_ID
     */
    public Long getOrganizationId() {
        return organizationId;
    }

    /**
     * @param organizationId
     */
    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    /**
     * @return ORGANIZATION_NAME
     */
    public String getOrganizationName() {
        return organizationName;
    }

    /**
     * @param organizationName
     */
    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName == null ? null : organizationName.trim();
    }

    /**
     * @return ORGANIZATION_SHORT_NAME
     */
    public String getOrganizationShortName() {
        return organizationShortName;
    }

    /**
     * @param organizationShortName
     */
    public void setOrganizationShortName(String organizationShortName) {
        this.organizationShortName = organizationShortName == null ? null : organizationShortName.trim();
    }

    /**
     * @return PARENT_ORGANIZATION_ID
     */
    public Long getParentOrganizationId() {
        return parentOrganizationId;
    }

    /**
     * @param parentOrganizationId
     */
    public void setParentOrganizationId(Long parentOrganizationId) {
        this.parentOrganizationId = parentOrganizationId;
    }

    /**
     * @return CREATE_USER_ID
     */
    public Long getCreateUserId() {
        return createUserId;
    }

    /**
     * @param createUserId
     */
    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * @return CREATE_DATE
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return ORGANIZATION_STATUS
     */
    public Long getOrganizationStatus() {
        return organizationStatus;
    }

    /**
     * @param organizationStatus
     */
    public void setOrganizationStatus(Long organizationStatus) {
        this.organizationStatus = organizationStatus;
    }

    /**
     * @return ORGANIZATION_ADD_TYPE
     */
    public Long getOrganizationAddType() {
        return organizationAddType;
    }

    /**
     * @param organizationAddType
     */
    public void setOrganizationAddType(Long organizationAddType) {
        this.organizationAddType = organizationAddType;
    }

    /**
     * @return ORGANIZATION_REMARK
     */
    public String getOrganizationRemark() {
        return organizationRemark;
    }

    /**
     * @param organizationRemark
     */
    public void setOrganizationRemark(String organizationRemark) {
        this.organizationRemark = organizationRemark == null ? null : organizationRemark.trim();
    }
}